import request from '@/utils/request'

// 1.获取本年、本月计划-实际检查数据
export function safetycheckData(yearMonth) {
  return request({
    url: '/ecological/safety/checkData',
    method: 'get'
  })
}

// 2.获取本年、本月隐患发现-整改数据
export function safetyhazardData(yearMonth) {
  return request({
    url: '/ecological/safety/hazardData',
    method: 'get',
	params:{
		yearMonth
	}
  })
}
// 3.获取本年、本月特种作业完成次数
export function specialOperation(yearMonth) {
  return request({
    url: '/ecological/safety/specialOperation',
    method: 'get',
	params:{
		yearMonth
	}
  })
}
// 4.获取临时设备证照和历史企业证照数量
export function certificatecount(yearMonth) {
  return request({
    url: '/ecological/certificate/count',
    method: 'get',
	params:{
		yearMonth
	}
  })
}

//5.获取各区域隐患统计列表暂定
export function hazardregionList(yearMonth) {
  return request({
    url: '/ecological/safety/hazard/regionList',
    method: 'get',
	params:{
		yearMonth
	}
  })
}

//6.本月环境监测折线图数据（PM10, PM2.5, 噪音, 湿度）
export function environmentmonthLine(yearMonth) {
  return request({
    url: '/ecological/environment/monthLine',
    method: 'get',
	params:{
		yearMonth
	}
  })
}

//7.获取本年隐患位置分布饼状图数据
export function hazardlocationPie(yearMonth) {
  return request({
    url: '/ecological/safety/hazard/locationPie',
    method: 'get',
	params:{
		yearMonth
	}
  })
}

//8.本年隐患来源分布饼状图
export function hazardsourcePie(yearMonth) {
  return request({
    url: '/ecological/safety/hazard/sourcePie',
    method: 'get',
	params:{
		yearMonth
	}
  })
}
// 9.本年隐患级别分布饼状图
export function hazardlevelPie(yearMonth) {
  return request({
    url: '/ecological/safety/hazard/levelPie',
    method: 'get',
	params:{
		yearMonth
	}
  })
}
// 10.本年特种作业分布饼状图
export function specialOperationPie(yearMonth) {
  return request({
    url: '/ecological/safety/specialOperationPie',
    method: 'get',
	params:{
		yearMonth
	}
  })
}
// 11.获取隐患详情列表
export function hazarddetails(yearMonth) {
  return request({
    url: '/ecological/safety/hazard/details',
    method: 'get',
	params:{
		yearMonth
	}
  })
}


